﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace XMK.AuthModule
{
    public class AuthPathInfoElement : ConfigurationElement
    {
        [ConfigurationProperty("pathInfo", IsRequired = true)]
        public string PathInfo {
            get { return (string)this["pathInfo"]; }
            set { this["pathInfo"] = value; }
        }

        [ConfigurationProperty("isCheckSession", IsRequired = true)]
        public bool IsCheckSession{
            get { return (bool)this["isCheckSession"]; }
            set { this["isCheckSession"] = value; }      
        }

        [ConfigurationProperty("isCheckAuthorization")]
        public bool IsCheckAuthorization
        {
            get { return (bool)this["isCheckAuthorization"]; }
            set { this["isCheckAuthorization"] = value; }      
        }
        /// <summary>
        /// 是否用正则表达式匹配
        /// </summary>
        [ConfigurationProperty("isReg")]
        public bool IsReg
        {
            get { return (bool)this["isReg"]; }
            set { this["isReg"] = value; }
        }
    }
}
